/* 
 * File:   24w256.h
 * Author: Administrator
 *
 * Created on 2015年4月17日, 上午9:08
 */

#ifndef IIC_24W256_H
#define	IIC_24W256_H

#ifdef	__cplusplus
extern "C" {
#endif

//void iic_24w256_write_byte(uint8_t slave, uint16_t addr, uint8_t data);
//uint8_t iic_24w256_read_byte(uint8_t slave);
//uint8_t iic_24w256_random_read(uint8_t slave, uint16_t addr);
//
//void iic_24w256_write_data(uint8_t slave, uint16_t addr, uint16_t nb, uint16_t *data);
//void iic_24w256_read_data(uint8_t slave, uint16_t addr, uint16_t nb, uint16_t *data);

void fm24w256_single_byte_write(uint8_t slave, uint16_t addr, uint8_t data);
void fm24w256_multiple_byte_write(uint8_t slave, uint16_t addr, uint16_t nb, uint8_t *data);

uint8_t fm24w256_current_addr_read(uint8_t slave);
void fm24w256_sequential_read(uint8_t slave, uint16_t nb, uint8_t *data);
void fm24w256_selective_read(uint8_t slave, uint16_t addr, uint16_t nb, uint8_t *data);

uint8_t read_conitue(uint8_t device_addr,uint8_t I2C_addr_h,uint8_t I2C_addr_l,uint8_t *s,uint8_t num);

#ifdef	__cplusplus
}
#endif

#endif	/* IIC_24W256_H */

